<%@ page import="cn.java79.quiz.web.QuizListener" %>
<%@ page import="cn.java79.quiz.entity.User" %>
<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: oldliu
  Date: 2022/8/31
  Time: 16:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h1>当前在线用户</h1>
<ul>
    <%
        List<User> onlines = QuizListener.onlines;
        for(User u: onlines){
    %>
    <li><%=u.getLoginname()%>,<%=u.getRealname()%></li>
    <%}%>
</ul>
</body>
</html>
